//
//  main.cpp
//  SymbrionDemonstration
//
//  Created by Berend Weel on 3/22/13.
//  Copyright (c) 2013 Berend Weel. All rights reserved.
//
#include <iostream>
#include <exception>

#include "Logger.h"

#include "WebotsSupervisor.h"
#include "RobotType.h"
#include "KIT.h"
#include "Scout.h"

int main(int argc, char **argv)
{
    try{
        Logger::getRootInstance().info(logMessage("Starting supervisor"));;
        DemoSupervisor *controller = new WebotsSupervisor(argc,argv, new Scout_noWheel());
        controller->run();
        delete controller;
        Logger::getRootInstance().info(logMessage("Demo finished"));
    }catch (std::exception &e){
        std::cerr << "Exception: " << e.what() << std::endl;
        return 1;
    }
    return 0;
}
